<?php
	class diabanbs
	{
		public $MaDiaBan = "";
		public $TenDiaBan = "";
		public $MaDiaBanCu = "";
		
		public function Them()
		{
			$db = new diabandb();
			return $db->Them($this->MaDiaBan, 
							 $this->TenDiaBan);
		}
		
		public function CapNhat()
		{
			$db = new diabandb();
			return $db->CapNhat($this->MaDiaBan, 
								$this->TenDiaBan,
								$this->MaDiaBanCu);
		}
		
		public function TonTaiTrongKhachHang()
		{
			$db = new diabandb();
			return $db->TonTaiTrongKhachHang($this->MaDiaBan);
		}
		
		
		public function Xoa()
		{
			$db = new diabandb();
			return $db->Xoa($this->MaDiaBan);
		}
		
		public function XoaTatCa()
		{
			$db = new diabandb();
			return $db->XoaTatCa();
		}
		
		public function LayDanhSach()
		{
			$db = new diabandb();
			return $db->LayDanhSach($this->MaDiaBan,
									$this->TenDiaBan);
		}
	}
?>